//
//  CustomerListCell.swift
//  Employee
//
//  Created by tancheng on 2018/7/23.
//  Copyright © 2018年 remotevillage. All rights reserved.
//

import UIKit

class CustomerListCell: UITableViewCell {

    static let reuseIdentifer = "CustomerListCell"
    
    @IBOutlet weak var role: UILabel!
    @IBOutlet weak var ownerName: UILabel!
    @IBOutlet weak var houseName: UILabel!
    
    var model: CustomerListModel? {
        didSet {
            guard let cm = model else {
                return
            }
            
            //
            role.text = cm.customerType
            ownerName.text = cm.name
            houseName.text = cm.numberDesc
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
